Optimal. Leaf size=292 \[ -\frac{a^{3/4} \left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )}{2 \sqrt{2} c^{9/4}}+\frac{a^{3/4} \left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )}{2 \sqrt{2} c^{9/4}}-\frac{a^{3/4} \left (\sqrt{a} B-A \sqrt{c}\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} c^{9/4}}+\frac{a^{3/4} \left (\sqrt{a} B-A \sqrt{c}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}+1\right )}{\sqrt{2} c^{9/4}}-\frac{2 a B \sqrt{x}}{c^2}+\frac{2 A x^{3/2}}{3 c}+\frac{2 B x^{5/2}}{5 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.344584, antiderivative size = 292, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 8, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4, Rules used = {825, 827, 1168, 1162, 617, 204, 1165, 628} \[ -\frac{a^{3/4} \left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )}{2 \sqrt{2} c^{9/4}}+\frac{a^{3/4} \left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )}{2 \sqrt{2} c^{9/4}}-\frac{a^{3/4} \left (\sqrt{a} B-A \sqrt{c}\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} c^{9/4}}+\frac{a^{3/4} \left (\sqrt{a} B-A \sqrt{c}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}+1\right )}{\sqrt{2} c^{9/4}}-\frac{2 a B \sqrt{x}}{c^2}+\frac{2 A x^{3/2}}{3 c}+\frac{2 B x^{5/2}}{5 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 825
Rule 827
Rule 1168
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int \frac{x^{5/2} (A+B x)}{a+c x^2} \, dx &=\frac{2 B x^{5/2}}{5 c}+\frac{\int \frac{x^{3/2} (-a B+A c x)}{a+c x^2} \, dx}{c}\\ &=\frac{2 A x^{3/2}}{3 c}+\frac{2 B x^{5/2}}{5 c}+\frac{\int \frac{\sqrt{x} (-a A c-a B c x)}{a+c x^2} \, dx}{c^2}\\ &=-\frac{2 a B \sqrt{x}}{c^2}+\frac{2 A x^{3/2}}{3 c}+\frac{2 B x^{5/2}}{5 c}+\frac{\int \frac{a^2 B c-a A c^2 x}{\sqrt{x} \left (a+c x^2\right )} \, dx}{c^3}\\ &=-\frac{2 a B \sqrt{x}}{c^2}+\frac{2 A x^{3/2}}{3 c}+\frac{2 B x^{5/2}}{5 c}+\frac{2 \operatorname{Subst}\left (\int \frac{a^2 B c-a A c^2 x^2}{a+c x^4} \, dx,x,\sqrt{x}\right )}{c^3}\\ &=-\frac{2 a B \sqrt{x}}{c^2}+\frac{2 A x^{3/2}}{3 c}+\frac{2 B x^{5/2}}{5 c}+\frac{\left (a \left (\sqrt{a} B-A \sqrt{c}\right )\right ) \operatorname{Subst}\left (\int \frac{\sqrt{a} \sqrt{c}+c x^2}{a+c x^4} \, dx,x,\sqrt{x}\right )}{c^{5/2}}+\frac{\left (a \left (\sqrt{a} B+A \sqrt{c}\right )\right ) \operatorname{Subst}\left (\int \frac{\sqrt{a} \sqrt{c}-c x^2}{a+c x^4} \, dx,x,\sqrt{x}\right )}{c^{5/2}}\\ &=-\frac{2 a B \sqrt{x}}{c^2}+\frac{2 A x^{3/2}}{3 c}+\frac{2 B x^{5/2}}{5 c}+\frac{\left (a \left (\sqrt{a} B-A \sqrt{c}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{a}}{\sqrt{c}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{c}}+x^2} \, dx,x,\sqrt{x}\right )}{2 c^{5/2}}+\frac{\left (a \left (\sqrt{a} B-A \sqrt{c}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{a}}{\sqrt{c}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{c}}+x^2} \, dx,x,\sqrt{x}\right )}{2 c^{5/2}}-\frac{\left (a^{3/4} \left (\sqrt{a} B+A \sqrt{c}\right )\right ) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{c}}+2 x}{-\frac{\sqrt{a}}{\sqrt{c}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{c}}-x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{2} c^{9/4}}-\frac{\left (a^{3/4} \left (\sqrt{a} B+A \sqrt{c}\right )\right ) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{c}}-2 x}{-\frac{\sqrt{a}}{\sqrt{c}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{c}}-x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{2} c^{9/4}}\\ &=-\frac{2 a B \sqrt{x}}{c^2}+\frac{2 A x^{3/2}}{3 c}+\frac{2 B x^{5/2}}{5 c}-\frac{a^{3/4} \left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} c^{9/4}}+\frac{a^{3/4} \left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} c^{9/4}}+\frac{\left (a^{3/4} \left (\sqrt{a} B-A \sqrt{c}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} c^{9/4}}-\frac{\left (a^{3/4} \left (\sqrt{a} B-A \sqrt{c}\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} c^{9/4}}\\ &=-\frac{2 a B \sqrt{x}}{c^2}+\frac{2 A x^{3/2}}{3 c}+\frac{2 B x^{5/2}}{5 c}-\frac{a^{3/4} \left (\sqrt{a} B-A \sqrt{c}\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} c^{9/4}}+\frac{a^{3/4} \left (\sqrt{a} B-A \sqrt{c}\right ) \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} c^{9/4}}-\frac{a^{3/4} \left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} c^{9/4}}+\frac{a^{3/4} \left (\sqrt{a} B+A \sqrt{c}\right ) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{c} x\right )}{2 \sqrt{2} c^{9/4}}\\ \end{align*}
Mathematica [A] time = 0.102424, size = 290, normalized size = 0.99 \[ \frac{-15 \sqrt{2} a^{5/4} B \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )+15 \sqrt{2} a^{5/4} B \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{c} \sqrt{x}+\sqrt{a}+\sqrt{c} x\right )-30 \sqrt{2} a^{5/4} B \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}\right )+30 \sqrt{2} a^{5/4} B \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{c} \sqrt{x}}{\sqrt [4]{a}}+1\right )+60 (-a)^{3/4} A \sqrt{c} \tan ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{x}}{\sqrt [4]{-a}}\right )-60 (-a)^{3/4} A \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt [4]{c} \sqrt{x}}{\sqrt [4]{-a}}\right )-120 a B \sqrt [4]{c} \sqrt{x}+40 A c^{5/4} x^{3/2}+24 B c^{5/4} x^{5/2}}{60 c^{9/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.013, size = 302, normalized size = 1. \begin{align*}{\frac{2\,B}{5\,c}{x}^{{\frac{5}{2}}}}+{\frac{2\,A}{3\,c}{x}^{{\frac{3}{2}}}}-2\,{\frac{aB\sqrt{x}}{{c}^{2}}}+{\frac{aB\sqrt{2}}{2\,{c}^{2}}\sqrt [4]{{\frac{a}{c}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}+1 \right ) }+{\frac{aB\sqrt{2}}{2\,{c}^{2}}\sqrt [4]{{\frac{a}{c}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}-1 \right ) }+{\frac{aB\sqrt{2}}{4\,{c}^{2}}\sqrt [4]{{\frac{a}{c}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{c}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{c}}} \right ) ^{-1}} \right ) }-{\frac{aA\sqrt{2}}{4\,{c}^{2}}\ln \left ({ \left ( x-\sqrt [4]{{\frac{a}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{c}}} \right ) \left ( x+\sqrt [4]{{\frac{a}{c}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{c}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}-{\frac{aA\sqrt{2}}{2\,{c}^{2}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}-{\frac{aA\sqrt{2}}{2\,{c}^{2}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{c}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.55003, size = 1709, normalized size = 5.85 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.27659, size = 354, normalized size = 1.21 \begin{align*} \frac{\sqrt{2}{\left (\left (a c^{3}\right )^{\frac{1}{4}} B a c - \left (a c^{3}\right )^{\frac{3}{4}} A\right )} \arctan \left (\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{a}{c}\right )^{\frac{1}{4}} + 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{a}{c}\right )^{\frac{1}{4}}}\right )}{2 \, c^{4}} + \frac{\sqrt{2}{\left (\left (a c^{3}\right )^{\frac{1}{4}} B a c - \left (a c^{3}\right )^{\frac{3}{4}} A\right )} \arctan \left (-\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{a}{c}\right )^{\frac{1}{4}} - 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{a}{c}\right )^{\frac{1}{4}}}\right )}{2 \, c^{4}} + \frac{\sqrt{2}{\left (\left (a c^{3}\right )^{\frac{1}{4}} B a c + \left (a c^{3}\right )^{\frac{3}{4}} A\right )} \log \left (\sqrt{2} \sqrt{x} \left (\frac{a}{c}\right )^{\frac{1}{4}} + x + \sqrt{\frac{a}{c}}\right )}{4 \, c^{4}} - \frac{\sqrt{2}{\left (\left (a c^{3}\right )^{\frac{1}{4}} B a c + \left (a c^{3}\right )^{\frac{3}{4}} A\right )} \log \left (-\sqrt{2} \sqrt{x} \left (\frac{a}{c}\right )^{\frac{1}{4}} + x + \sqrt{\frac{a}{c}}\right )}{4 \, c^{4}} + \frac{2 \,{\left (3 \, B c^{4} x^{\frac{5}{2}} + 5 \, A c^{4} x^{\frac{3}{2}} - 15 \, B a c^{3} \sqrt{x}\right )}}{15 \, c^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]